<%--
  Created by IntelliJ IDEA.
  User: Ken
  Date: 2022/4/15
  Time: 10:51
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学生新增</title>
</head>
<body>
    <h1>新增学生</h1>
    <form action="stuinsert" method="post">
        学生姓名：<input name="name"/><br/>
        学生性别：<input name="sex" type="radio" value="1" checked/>男 <input name="sex" type="radio" value="0"/>女<br/>
        所属班级：<select name="cid">
                   <c:forEach items="${classes}" var="cls">
                       <option value="${cls.id}">${cls.className}(${cls.classCount})</option>
                   </c:forEach>
                </select><br/>
         <button type="submit">添加</button>
    </form>
</body>
</html>
